﻿<Window x:Class="Excersise1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="353" Width="842">
    <Grid>
        <Grid.Resources>
            <Style TargetType="TextBox">
                <Setter Property="BorderBrush" Value="Red"/>
                <Setter Property="BorderThickness" Value="3"/>
                <Setter Property="TextAlignment" Value="Center"/>
                <Setter Property="Margin" Value="4"/>
                <Setter Property="Padding" Value="15"/>
            </Style>
        </Grid.Resources>
        <StackPanel Orientation="Horizontal">
            <TextBox>Some Text</TextBox>
            <TextBox>Some Text</TextBox>
            <TextBox>Some Text</TextBox>
            <Border BorderBrush="Red" BorderThickness="3" Margin="4">
                <StackPanel>
                    <TextBox>Some Text</TextBox>
                    <TextBox>Some Text</TextBox>
                    <TextBox>Some Text</TextBox>
                </StackPanel>
            </Border>
            <Border BorderBrush="Red" BorderThickness="3" Margin="4">
                <DockPanel LastChildFill="True" Margin="7">
                    <TextBox DockPanel.Dock="Top">Some Text</TextBox>
                    <TextBox DockPanel.Dock="Left">Some Text</TextBox>
                    <TextBox DockPanel.Dock="Bottom">Some Text</TextBox>
                    <TextBox DockPanel.Dock="Right">Some Text</TextBox>
                    <TextBox>Some Text</TextBox>
                </DockPanel>
            </Border>
        </StackPanel>
    </Grid>
</Window>
